package com.godchicken.praise_each_other.cim.server.entity;

import lombok.Data;

import java.util.HashMap;
import java.util.Map;

/**
 * com.godchicken.praise_each_other.cim.server.entity
 * 2020/11/13
 *
 * @author: godchicken
 */
@Data
public class Result {

    //状态码
    private int status;

    //消息
    private String msg;

    //数据
    private Map<Object,Object> datamap  = new HashMap<Object,Object>();

    public void addData(Object key, Object data) {
        datamap.put(key,data);
    }


    public Object getData(Object key) {
        return datamap.get(key);
    }

}
